package Chinese.Education.Identify.mapper;

import Chinese.Education.Identify.pojo.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {

    List<Course> selectCourse(@Param("offset") int offset,
                              @Param("limit") int limit,
                              @Param("courseId") String courseId,
                              @Param("courseName") String courseName);

    int selectCount();

    void insertCourse(Course course);

    void deleteCourse(Course course);

    void updateCourse(Course course);

    List<Course> findByMajorAndGrade(@Param("major") String major, @Param("grade") String grade);
}
